{T "content","head",TPLID}
<!--路径导航-->
<div style="background: #f5f5f5; border-bottom: 1px solid #ddd">
    <div class="container">
        <ol class="breadcrumb" style="margin-bottom: 0px; font-size: 12px;">
            您现在的位置：
            <li><a href="/index.php">首页</a></li>
            <li class="active"><a href="/index.php?m=guestbook">留言板</a></li>
        </ol>
    </div>
</div>


<div class="container liuyan-list">
    <div class="bs-example bs-example-tabs" data-example-id="togglable-tabs">
        <ul id="myTabs" class="nav nav-pills liuyan-hdsx" role="tablist">
            <li role="presentation" class=" active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true" >查询结果显示</a></li>
        </ul>

        <div id="myTabContent" class="tab-content">

        <div role="tabpanel" class="tab-pane fade active in" id="home" aria-labelledby="home-tab">
            <div class="panel panel-default">
                {wz:guestbook action="listing"  page="$page" pagesize="20" order="id DESC" }
                {if $result}
                {php $arr=array(1=>'未审核',8=>'已回复',9=>'未回复');}
                {loop $result $key $r}
                <div class="panel-heading">
                    <span style="display: inline-block"><strong>[<a>{$r['field']}</a> <a>{$r['category']}</a>] <a>{$r['title']}</a></strong><span class="color_danger  font_size14">&nbsp;&nbsp; | &nbsp;&nbsp;{$arr[$r[status]]}</span> </span> <span style=" float: right; font-size: 14px;  color: #999; line-height: 2.2">网友：{$r['linkman']}  &nbsp;&nbsp; {date('Y-m-d H:i',$r['addtime'])}</span>
                </div>
                <div class="panel-body">
                    {strcut($r['content'],180,'...')}
                    {if $r[status]==9}
                    <p class="text-right color_777 font_size14 margin_bottom0"><a href="/index.php?m=guestbook&f=index&v=show&id={$r['id']}">[查看全文]</a></p>
                    {/if}
                </div>
                <!--回复-->
                {if $r[status]==8}
                <div class="panel-footer">
                    <div class="huifu-hd">
                        <div class="hd-left"><h4><strong>官方回复：</strong></h4></div>
                        <div class="hd-right"> <span style=" font-size: 14px;  color: #999; line-height: 2.2">回复单位：{$r[reply_user]}  &nbsp;&nbsp; {date('Y-m-d H:i',$r['replytime'])}</span></div>
                    </div>
                    {strcut($r['reply'],180,'...')}
                    <p class="text-right color_777 font_size14 margin_bottom0"><a href="/index.php?m=guestboook&f=index&v=show&id={$r['id']}">[查看全文]</a></p>
                </div>
                {/if}
                <!-- // 回复-->
                {/loop}
                {else}
                <p class="text-center color_777 font_size14 margin_bottom0">没有找到结果</p>
                {/if}
                {/wz}
            </div>
            <!---------------五指分页开始---------------
            <div style="text-align:center;">
                <nav style="text-align: center;">
                    <ul class="pagination">
                        {$pages}
                    </ul>
                </nav>
            </div>
            <!--------------------end---------------------->
        </div>
    </div>
    </div>
</div>








{T "content","foot",TPLID}